package cn.com.connected.common.listener;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者:   邵明生
 * 时间:   2019/5/5 13:50
 * 描述:   springboot 启动监听
 */
@Configuration
public class ListenerConfig {
    @Bean
    public StartSuccessListener applicationStartSuccessListener(){
        return new StartSuccessListener();
    }
    @Bean
    public StartFailListener applicationStartFailListener(){
        return new StartFailListener();
    }
}